<?php

require_once dirname(__FILE__).'/../KenDon.php';

KenDon::load('DB_PDO', 'adapter');

KenDon::load('QTree');

$setting = array(
  'DBWrap'  =>  'KD_Adapter_DB_PDO',
  'DBInfo'  =>  array('dbms'=>'sqlite2', 'dbName'=>dirname(__FILE__).'/../Test/kendon.sdb'),
  'table'   =>  'qtree',
);

$tree = new KD_QTree($setting);

$root = $tree->getRootNode();

$treeview = $tree->displaySubTreeHtml($root);

echo $treeview;
